{% include 'header.html' %}  
<body class="defect-opensolaris-org-bz">

{%load url from future %}
{% if form.errors %}
<p> Your username and password didn't match, Please try agagin. </p>
{% endif %}

<div>
  <table id="tabtitles" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td id="title">
    <p>Login</p>
    </td></tr>
  </tbody></table>
</div>

<div id="bugzilla-body">


<p>
  Please use the Testopia account for authentication here. 
</p>

<form name="form_login" action="{% url 'do_login' %}" method="POST">
{% csrf_token %}
  <table>
    <tbody><tr>
      <th align="right"><label for="Bugzilla_login">Login:</label></th>
      <td>
	{{ form.username }}
      </td>
    </tr>
    <tr>
      <th align="right"><label for="Bugzilla_password">Password:</label></th>
      <td>
	{{ form.password }}
      </td>
    </tr>
    <tr>
      <th align="right"></th>
      <td>
        <input name="GoAheadAndLogIn" value="Log in" id="log_in" type="submit" class="testopia_btn" onMouseOver="this.className='testopia_btn2';" onMouseOut="this.className='testopia_btn';">
        <input type="hidden" name="next" value="{{ next|default:'/' }}" />
      </td>
    </tr>

  </tbody></table>

  <p>
    (Note: make sure cookies are enabled for this site. Otherwise, you will be required to log in frequently.)
  </p>
</form>

    <hr>
    <p>
      If you don't have a Testopia account, you can
      <a href="http://testopia.cn.oracle.com/createaccount.cgi" target="_blank">create a new account</a>.
    </p>

    <hr>
</div>
{% include 'footer.html' %}
